home *** CD-ROM | disk | FTP | other *** search
Wrap
/* Image Engineer ARexx macro script */ /* by Simon Edwards */ /* 12/6/95 */ Options results signal on error /* Setup a place for errors to go */ if arg()==0 then exit 'GET_NUMBER "Threshold value to use" 1 255 "Ok|Cancel" 252 SLIDER' thresholdvalue=RESULT HIGHPASS arg(1) 3 3 SCALE highfreq=RESULT 'HISTOGRAM_EQUALIZATION' highfreq histoproject=RESULT 'CLOSE' highfreq THRESHOLD histoproject thresholdvalue thresproject=RESULT CLOSE histoproject 'CONVOLVE' thresproject '"IE:Convolves/Spark"' sparkproject=RESULT CLOSE thresproject THRESHOLD sparkproject 1 primaryproject=RESULT MARK primaryproject PRIMARY MARK arg(1) SECONDARY MARK sparkproject ALPHA COMPOSITE 0 0 ALPHA CLOSE sparkproject CLOSE primaryproject exit /*******************************************************************/ /* This is where control goes when an error code is returned by IE */ /* It puts up a message saying what happened and on which line */ /*******************************************************************/ error: if RC=5 then do /* Did the user just cancel us? */ IE_TO_FRONT LAST_ERROR 'REQUEST "'||RESULT||'"' exit end else do IE_TO_FRONT LAST_ERROR 'REQUEST "Error detected!!!'||D2C(10)||'Image Engineer error message is as follows'||D2C(10)||result||D2C(10)||'Script failed on line '||SIGL||'"' 'Doh!' exit end